package com.bdqn.zhang.dao;

import com.bdqn.zhang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    int count();

    List<User> findAll();

    User findUserById(@Param("id") Integer id);

    List<User> findAllByCondition(User user);

    List<User> findAllByConditionAndPage(@Param("address")Integer address,@Param("from")Integer from,@Param("pageSize")Integer pageSize);

    int addUser(User user);

    int delUser(@Param("id") Integer id);

    int removeUsers(String[] id);

    int updateUser(User user);

}
